Bioelectrical impedance analysis to measure body composition